package com.neuedu.javase.coll;

/**
 * @auth 金山老师
 * title:   书籍代码
 * creatime: 2022-09-27 10:45
 * 描述 : 父类
 */
public class Parent {

    /**
     * 私有的属性，只能在当前类中使用
     */
   private String name;

   int age;
   protected String address;
   public double sal;


    public  void mth1(){
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
    }
    public  void mth2(){
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
    }
    private  void mth3(){
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
        System.out.println("功能");
    }


    /**
     * 封装
     */
    public void method(){
        mth1();
        mth2();
        mth3();
    }



}
